/**
 * Created by jerome.arnoult on 15/05/14.
 */
function gameentity(id, type, owner){
    this.id = id;
    this.type = type;
    this.owner = owner;
    this.graphics;
    this.pathCoords;
}

gameentity.prototype.place = function(x, y){
    var coords = game.gameMap.convertGridCoordsToPlacementCoords([x,y]);
    switch(this.type){
        case "thorium":
            this.graphics = game.gameRenderer.spawnThorium(coords[0], coords[1]);
            break;
        case "energy":

            break;
        case "harvest":

            break;
        case "food":

            break;
    }
    this.pathCoords = game.gameMap.convertGridCoordsToAStarCoords([x,y]);
}